package com.changgou.order.controller;

import com.changgou.core.AbstractCoreController;
import com.changgou.order.pojo.Task;
import com.changgou.order.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/****
 * @Author:admin
 * @Description:
 * @Date 2019/6/14 0:18
 *****/

@RestController
@RequestMapping("/task")
@CrossOrigin
public class TaskController extends AbstractCoreController<Task>{

    private TaskService  taskService;

    @Autowired
    public TaskController(TaskService  taskService) {
        super(taskService, Task.class);
        this.taskService = taskService;
        }
}
